package com.github.api.leaf.feign;

import com.github.common.core.feign.FeignInsideAuthConfig;
import com.github.common.core.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "mallXHcloud-leaf",contextId = "segmentFeignClient")
public interface SegmentFeignClient {

    /**
     * 获取分布式id
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_INSIDE_URL_PREFIX+"/insider/segment")
    ServerResponseEntity<Long> getSegmentId(@RequestParam("key") String key);
















}
